import { BaseDto, PageRes, Res } from '@/modules/common/common.dto'
import { HttpReq } from '@/modules/common/http'
import { Body, Controller, Delete, Get, Post, Put, Query } from 'butterfly-decorators'

export interface Table extends BaseDto {
  applicationId?: number
  tableName?: string
  tableDesc?: string
}

@Controller('table')
export class TableController extends HttpReq {
  @Get()
  findListReq(@Query() _query: any): PageRes<Table> | void {}

  @Post('findFilter')
  findFilterReq(@Query() _query: any, @Body() _body: Table): PageRes<Table> | void {}

  @Post()
  addOneReq(@Body() _body: any): Res<any> | void {}

  @Put()
  updateOneReq(@Body() _body: any): Res<any> | void {}

  @Delete()
  deleteByIdsReq(@Body() _body: any[]): Res<any> | void {}
}
